package com.lqq.designPattern.behavioral_pattern.command;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

//订单类
@Data
public class Order {
    //餐桌号码
    private int diningTable;
    //所下餐品的份数
    private Map<String, Integer> foodDir = new HashMap<>();
    public void setFood(String name, int num) {
        foodDir.put(name, num);
    }
}
